package jjn.round1;

/**
 * @author Jjn
 * @since 2022/8/28 18:45
 */
public class LeetCode1480_RunningSumOfArray {
    public int[] runningSum(int[] nums) {
        int[] rawData = new int[nums.length];
        System.arraycopy(nums, 0, rawData, 0, nums.length);
        int total = 0;
        for (int i = 0; i < rawData.length; i++) {
            total += rawData[i];
            rawData[i] = total;
        }
        return rawData;
    }
}
